package com.itheima.domain.db;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserFreeze implements Serializable {
    private Long id;//id
    private Long userId;//id
    private Long freezingTime; //冻结时间，1为冻结3天，2为冻结7天，3为永久冻结
    private Long freezingRange; //冻结时间，1为冻结3天，2为冻结7天，3为永久冻结
    private String reasonsForFreezing; //冻结时间，1为冻结3天，2为冻结7天，3为永久冻结
    private String frozenRemarks; //备注
    private String reasonsForThawing;//解冻原因

    @TableField(fill = FieldFill.INSERT)
    private Date created;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updated;
}
